<template>
  <div>
    <!-- 其他页 -->
    <el-container>
      <el-header>
        <!-- 导航栏 -->
        <header-nav></header-nav>
      </el-header>
      <el-container>
        <el-aside style="background: #f00">
          <!-- 侧边栏 -->
          <!-- <aside-nav></aside-nav> -->
          <hy-Aside></hy-Aside>
        </el-aside>
        <el-main>
          <keep-alive include="daohang-nav">
            <daohang-nav></daohang-nav>
          </keep-alive>
          <!-- Body -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import header from "./Header.vue";
import aside from "./Aside.vue";

export default {
  components: {
    headerNav: header,
    asideNav: aside
  },
  data() {
    return {
      componentsCache: "daohang-nav"
    }
  }
};
</script>

<style lang="scss" scoped>
.el-aside {
  width: 179px !important;
  z-index: 0;
}

.el-header {
  padding: 0px;
  margin: 0px;
}

.el-main {
  padding: 0;
  margin-left: -15px;
  background-color: rgb(245, 243, 251);
  min-width: 1235px;
  z-index: 1;
}
</style>
